#include "include/cssStyle.h"

// 构造函数
CssStyle::CssStyle() {}
CssStyle::~CssStyle(){}

/*按钮样式*/
QString CssStyle::getButtonStyle() {
	const char* str = R"(QPushButton {
		font-weight: bold;
	})";
	return str;
}

QString CssStyle::getMoreFunButton() {
	const char* str = R"(
    QPushButton {
        background: white; /* 背景色 */
        border: 2px solid black; 
        border-left: 0px;
        border-top-right-radius: 10px; 
        border-bottom-right-radius: 10px; 
        font-size: 18px; 
    }
    QPushButton:hover {
        background: lightgray; /* 鼠标悬浮时的背景色 */
    }
    )";
	return str;
}

QString CssStyle::getTickerMsgButton() {
    const char* str = R"(QPushButton {
		font-weight: bold;
        background-color:white;
        border-radius: 5px;    
        border：2px solid black;
	}
    QPushButton:hover {
        background: lightgray; /* 鼠标悬浮时的背景色 */
    })";
    return str;
}

QString CssStyle::getCloseButtonStyle() {
    const char* str = R"(QPushButton {
		font-size: 25px;
        border：1px solid black;
	}
     QPushButton:hover {
        background: black;
        color: white; 
    }
    )";
    return str;
}

QString CssStyle::getBookButtonStyle() {
    const char* str = R"(QPushButton {
        font-weight: bold;
		font-size: 14px;
        border：1px solid black;
        border-radius:5px;
        background-color:rgb(53,247,32);
	}
     QPushButton:hover {
        font-size: 16px;
        color: white; 
    }
    )";
    return str;
}

QString CssStyle::getFlashButtonStyle() {
    const char* str = R"(QPushButton {
		font-size: 25px;
        border：1px solid black;
        background: black;
	}
    )";
    return str;
}

/*字体样式*/
QString CssStyle::getTitleLableStyle() {
	const char* str = R"(QLabel#title {
                           font-size: 30px; 
                           font-weight: bold; 
                           color: black; 
                           text-align: center; 
						   background-color:pink;
	})";

	return str;
}

QString CssStyle::getClientMegLabelSstyle() {
    const char* str = R"(QLabel[objectName="clientMegLabel"] {
                           font-size: 15px; 
                           font-weight: bold; 
                           color: black; 
                           text-align: center; 
                           border：1px solid black;
						   
	})";

    return str;
}

// 订票系统窗口样式
QString CssStyle::getTicketBookStyle() {
    const char* str = R"(QWidget{
        background-color:white;
        border-radius: 15px;    
       
    })";
    return str;
}


